package com.useeinfo.oa.modules.security.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by xianping.sun on 2018/10/15.
 */
public class SerialNumUtil {

    public static final String APPLIANCE_ORDER_PRIFIX = "AP";
    public static final String ACCOUNT_ORDER_PRIFIX = "AC";

    public synchronized static String getApplianceOrderNum(){
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmssSSS");
        String now = simpleDateFormat.format(new Date());
        return APPLIANCE_ORDER_PRIFIX+now;
    }
}
